<?php 
//this file handles all the jazz for forum admin
function saveConfig($post_vars){
	global $link;
	
	//clean up the incoming vars
	foreach($post_vars as $name => $value){
		//escape and search
		$value = mysql_real_escape_string($value);
		
		//update the config
		$result = mysql_query("UPDATE ".TABLE_PREFIX."_config SET configValue = '".$value."' WHERE configName = '".$name."'");
		
		if(!$result){
			echo "output=mySqlError&error=".mysql_error();
			return;
		}	
	}
		
	//all good
	return "output=success";
}
?>